Ext.define('ProjectAON.store.Schooljaar', {
    extend: 'Ext.data.Store',
    model: 'ProjectAON.model.Schooljaar',

    autoLoad:true,

    proxy:{
        type:'ajax',
        api: {
            read: 'data/select.php',
            update: 'data/updateCompetentiesPerVak.php',
            create: 'data/insertCompetentiesPerVak.php',
            destroy: 'data/deleteVak.php'
        },
        reader:{
            type:'json',
            root:'Klas',
            successProperty:'success'
        },
        extraParams:{tabel:'schooljaar'}
    }
});